package com.key.modules.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.key.common.base.RespResult;
import com.key.modules.dto.LoginFormDTO;
import com.key.modules.dto.SysUserSelectDTO;
import com.key.modules.entity.SysRole;
import com.key.modules.entity.SysUser;
import com.key.modules.mapper.SysUserMapper;
import com.key.modules.vo.SysUserVO;
import org.springframework.beans.factory.annotation.Autowired;

import javax.servlet.http.HttpServletResponse;
import java.util.List;

/**
 * @Author：朕
 * @Package：com.key.modules.service
 * @Project：logistics_system
 * @name：SysUserService
 * @Date：2023/3/23 20:03
 * @Filename：SysUserService
 */
public interface SysUserService {

    //登录
    RespResult login(LoginFormDTO loginFormDTO, HttpServletResponse response);

    //显示用户信息
    List<SysUserVO> findSysUser(SysUserSelectDTO sysUserSelectDTO);

    //新增用户
    Boolean addSysUser(SysUser sysUser);

    //修改用户
    Boolean updateSysUser(SysUser sysUser);

    //删除用户
    Boolean deleteSysUser(Integer userId);

    //新增用户角色
    Boolean addSysUserRole(Integer userId,Integer[] roleId);
}
